package com.zzyl.controller;

import com.zzyl.base.ResponseResult;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.service.NursingPlanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping(("/nursing"))
@Api(tags = "护理计划")
public class NursingPlanController extends BaseController {
    @Autowired
    private NursingPlanService nursingPlanService;
    @ApiOperation("查询所有护理计划aaa")
    public ResponseResult getList(){
      List<NursingPlan> pojo = nursingPlanService.listAll();
      return ResponseResult.success(pojo);
    }
}
